<% # Extract arguments.* from params
pars = []
args = {}
params.each do |p|
  pars << p and next unless p.name.include? '.'

  p = p.dup
  name = p.name.split('.')
  p.name = name.last

  args[name.first] ||= []
  args[name.first] << p
end
-%>
(<span class="method_params"><%= (render :partial => 'params', :locals => {params: pars}).strip.html_safe unless pars.empty? -%>
  <% unless args.empty? -%>
   <% args.each do |obj, params| -%>
<span class="options"><span class="option_open">{</span><%= (render :partial => 'params', :locals => {params: params}).strip.html_safe %><span class="option_close">}</span></span><% end %><% end %></span>)
